package com.wheel.logging.ws.server;/*
 * <h3>Title:wheel-service-ant系统</h3>
 * <p>Copyright (c) 2021, wnfbx@163.com. All rights reserved.</p>
 * @author wnfbx@163.com
 */

import javax.websocket.Session;

/**
 * <dt>Description:SessionHolder</dt>
 * <dd>绑定session和log</dd>
 *
 * @author wnfbx@163.com
 * @version 1.0 <i>2021/2/1 0:00</i>
 * @since jdk1.7+
 */
public class LogSessionManager {

    //静态内部类
    private static class SingletonHolder {
        private static LogSessionManager singleton = new LogSessionManager();
    }
    private LogSessionManager() {
    }
    //提供一个公共静态方法来获取一个实例
    public static LogSessionManager getInstance() {
        return SingletonHolder.singleton;
    }

    private Session session;

    public void setSession(Session session) {
        this.session = session;
    }

    public Session getSession() {
        return session;
    }

    public void close(Session session) {
    }
}
